package com.yc.spring.bbs.bean;

import lombok.Data;

@Data
public class AliUser extends User{

    int age;
    String address;

    public AliUser() {
        // 构造函数执行时, 获取不到spring注入的属性值
    }

    public AliUser(int age, String address) {
        this.age = age;
        this.address = address;
    }

    public void init(){
        System.out.println(" init " + this);
    }

    public void destroy(){
        System.out.println(" destroy " + this);
    }
}
